package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.MenuItemDao;
import com.suke.czx.modules.examstack.exam.entity.MenuItemEntity;
import com.suke.czx.modules.examstack.exam.service.MenuItemService;



@Service("menuItemService")
public class MenuItemServiceImpl implements MenuItemService {
	@Autowired
	private MenuItemDao menuItemDao;
	
	@Override
	public MenuItemEntity queryObject(String menuId){
		return menuItemDao.queryObject(menuId);
	}
	
	@Override
	public List<MenuItemEntity> queryList(Map<String, Object> map){
		return menuItemDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return menuItemDao.queryTotal(map);
	}
	
	@Override
	public void save(MenuItemEntity menuItem){
		menuItemDao.save(menuItem);
	}
	
	@Override
	public void update(MenuItemEntity menuItem){
		menuItemDao.update(menuItem);
	}
	
	@Override
	public void delete(String menuId){
		menuItemDao.delete(menuId);
	}
	
	@Override
	public void deleteBatch(String[] menuIds){
		menuItemDao.deleteBatch(menuIds);
	}
	
}
